package com.legendframework.core.ioc.pojo;

import com.legendframework.core.AbstractLegendPlugin;

import java.lang.reflect.Method;

/**
 * 构建Bean所需的参数
 */
public class GenerateBeanParam {

    private Class<?> cls;

    private AbstractLegendPlugin plugin;

    private Method method;

    private Object object;

    public GenerateBeanParam(Class<?> cls, AbstractLegendPlugin plugin) {
        this.cls = cls;
        this.plugin = plugin;
    }

    public GenerateBeanParam(Class<?> cls, AbstractLegendPlugin plugin, Method method, Object object) {
        this.cls = cls;
        this.plugin = plugin;
        this.method = method;
        this.object = object;
    }

    public Class<?> getCls() {
        return cls;
    }

    public void setCls(Class<?> cls) {
        this.cls = cls;
    }

    public AbstractLegendPlugin getPlugin() {
        return plugin;
    }

    public void setPlugin(AbstractLegendPlugin plugin) {
        this.plugin = plugin;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }
}
